package Dungeoneering.Entities;

import org.powerbot.game.api.wrappers.Tile;

import Dungeoneering.Entities.Room.Direction;


/**
 * A door. Every room has at least one. with a max of 4
 * @author Nicolaas
 *
 */
public abstract class Door {
	
	public enum DoorType { GD, ENTER, SKILL, KEYDOOR };
	
	private Room parent;
	
	private Direction direction;
	
	private Tile location;
	
	public Door(Room parent, Direction dir, Tile tile) {
		this.parent = parent;
		this.direction = dir;
		this.location = tile;
	}		
	
	public abstract DoorType getType();
	
	public Tile getLocation() {
		return location;
	}
	
	public Room getRoom() {
		return parent;
	}
	
	public Direction getDirection() {
		return direction;
	}
}
